﻿@model IEnumerable<GuRenFang.Service.Entity.CategoryModel>
<ul class="thumbnails" style="overflow: hidden">
    @foreach (var item in Model)
    {
        <li class="span2">
            @if (item.CategoryType == 2)
            {
                <a href="Pictorial/Category?id=@item.Id&name=@item.Name" class="thumbnail">
                    <img alt="@item.Name" src="@Url.Content("~/" + item.ThumbnailPath)" />
                    <span>@item.Name</span>
                </a>
            }
            else
            {
                <a href="Wedding/Category?id=@item.Id&name=@item.Name" class="thumbnail">
                    <img alt="@item.Name" src="@Url.Content("~/" + item.ThumbnailPath)" />
                    <span>@item.Name</span>
                </a>
            }

        </li>
    }
</ul>
